new Vue({
    el: '#vue-app',
    data: {
        remain: 100,
        ended: false,
        isDisabled: ""
    },
    methods: {
       punch: function () {
           this.remain -= 10;
           if (this.remain <= 0) {
               this.ended = true;
           }
           console.log('punch');
       },
        restart: function () {
            this.remain = 100;
            this.ended = false;
            console.log('restart');
        }
    }
});